package com.gjy.design.factory.method;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-10 11:27:40
 */
public abstract class PaymentCreator {

    public abstract Payment createPayment();

    public void pay(double amount) {
        createPayment().pay(amount);
    }

}
